SOURCES=boot.o main.o common.o monitor.o dt.o isr.o interrupt.o gdt.o timer.o kheap.o paging.o ordered_map.o process.o task.o syscall.o

#CFLAGS=-nostdlib -nostdinc -fno-builtin -fno-stack-protector
CFLAGS=-nostdlib -nostdinc -fno-builtin
LDFLAGS=-T link.ld
ASFLAGS=-felf

refresh:
	make clean; make all

all: $(SOURCES) link

clean:
	rm *.o kernel

link:
	ld $(LDFLAGS) -o kernel $(SOURCES)

.s.o:
	nasm $(ASFLAGS) $<
